home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ IIS Admin Info.xpl < prev    next >
Text File  |  1999-09-13  |  1KB  |  43 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Internet\Internet Information Server\Other"
  5. "NAME"="Admin Information"
  6. "VERSION"="1.15"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Name"
  9. "TEXT 2"="EMail"
  10. "DESCRIPTION 1"="Use this plug-in to change the information of the administrator of this server."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  14.  
  15.  
  16. sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
  17. sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
  18. Sub Plugin_Initialize 
  19.  if RegPathExists(spC) then
  20.   s=RegReadValue(sp&"AdminName")
  21.   SetUIElement 1,s
  22.  
  23.   s=RegReadValue(sp&"AdminEmail")
  24.   SetUIElement 2,s
  25.  else
  26.   Disable
  27.  end if
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  s=GetUIElement(1)
  35.  Call RegWriteValue(sp&"AdminName",s,1)
  36.  
  37.  s=GetUIElement(2)
  38.  Call RegWriteValue(sp&"AdminEmail",s,1)
  39. End Sub
  40.  
  41. Sub Plugin_Terminate 
  42. End Sub
  43.